package com.briup.gsauestore.service.impl;

import com.briup.gsauestore.bean.Banner;
import com.briup.gsauestore.dao.IBannerDao;
import com.briup.gsauestore.service.IBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author adam
 * @date 2023/5/25
 */
@Service
public class BannerServiceImpl  implements IBannerService {
    @Autowired
    private IBannerDao bannerDao;
    @Override
    public List<Banner> findActiveBanners() {
        List<Banner> list = bannerDao.findByActive(true);
        return list;
    }
}
